<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
<title>[%$lngpack.enquirytitle%] - [%$lngpack.sitename%]</title>
<meta name="keywords" content="[%$lngpack.keyword%]" />
<meta name="description" content="[%$lngpack.description%]" />
<link href="[%$url%]templates/goods/style/tempates_div.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/goods/style/public.css" rel="stylesheet" type="text/css" />
<link href="[%$url%]templates/goods/style/pagebotton.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="[%$url%]js/jquery.js"></script>
<script type="text/javascript" src="[%$url%]js/basicrun.js"></script>
<!--[if IE 6]>
<style type="text/css" media="screen">
body {behavior:url("[%$url%]templates/goods/style/csshover.htc"); }
</style>
<![endif]-->
</head>

<body>
<div class="head">
	[%include file="goods/cn/public/head.html"%]
	[%if $out=='list'%]
	<!--购物车列表-->
	<script type="text/javascript">
		var order_amout_err = "[%$lngpack.order_amout_err%]";
	</script>
	<script type="text/javascript" src="[%$url%]js/ajax_city.js"></script>
	<script type="text/javascript">
	$(function() {
		sec_cityone('[%$member.country%]','[%$member.province%]');
		sec_citytwo('[%$member.province%]','[%$member.city%]');
		sec_district('[%$member.city%]','[%$member.district%]');
	});
	var citytwo_title = "[%$lngpack.citytwo_title%]";
	var citythree_title = "[%$lngpack.citythree_title%]";
	var district_title = "[%$lngpack.district_title%]";
	var count_city_err = "[%$lngpack.count_city_err%]";
	var address_title = "[%$lngpack.address_title%]";
	var zipcode_empty = "[%$lngpack.zipcode_empty%]";
	var alias_empty = "[%$lngpack.alias_empty%]";
	var email_err = "[%$lngpack.email_err%]";
	var tel_empty = "[%$lngpack.tel_empty%]";
	</script>
	<!--当前浏览位置-->
	<div class="framecenter">
		<div class="location">您现在的位置：首页 ＞ [%$lngpack.enquirytitle%] ＞ <b>提交询盘</b></div>
	</div>
	<div class="framecenter margintop8">
		<form name="mainform" method="post" action="[%$mlink.enquirysave%]" onsubmit="return enquirysave()">
		<input type="hidden" name="userid" value="[%$member.userid%]"/>
		<table style="width:90%;margin:0px auto;margin-top:30px;margin-bottom:30px;">
			<tr>
				<td>
					<table>
						<tr>
							<td><span class="messicon"><img src="[%$url%]templates/goods/images/page_edit.gif" /></span></td>
							<td><span class="messtext strong fontsize14">询盘列表</span></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><hr class="hrline"/></td>
			</tr>
			[% if count($array) > 0 %]
			<tr>
				<td style="padding-top:10px">
					<table class="tablelist" width="100%" style="margin:0 auto;">
						<tr>
							<td class="td01 center">商品名</td>
							<td class="td01 center">商品编号</td>
							<td class="td01 center">订购数量</td>
							<td class="td01 center">操作</td>
						</tr>
						[%forlist from=$array key=i%]
						<tr>
							<td class="td02 center"><input type="hidden" name="ptitle[]" value="[%$array[i].title%]"><a target="_blank" class="infolink05" href="[%$array[i].link%]">[%$array[i].title%]</a></td>
							<td class="td02 center"><input type="hidden" name="tsn[]" value="[%$array[i].tsn%]">[%$array[i].tsn%]</td>
							<td class="td02 center">
								<input type="text" name="amount[]" id="amount[%$array[i].did%]" value="[%$array[i].amount%]" onBlur="javascript:orderamount([%$array[i].did%]);" size="2" maxlength="5" class="infoInput">
								<input type="hidden" name="did[]" value="[%$array[i].did%]">
							</td>
							<td class="td02 center"><a class="infolink04" href="javascript:if (confirm('您确定要从询盘列表中删除该商品吗？')) location.href='[%$array[i].dellink%]';">删除询盘</a></td>
						</tr>
						[%/forlist%]
						<tr class="tdheight4">
							<td colspan="6" class="td02 right">
								<input name="addch" class="buttonface" type="button" value="继续选择商品" onclick="javascript:location.href='[%$homelink%]';">
								<input name="addch" class="buttonface" type="button" value="清空询盘表" onclick="javascript:if (confirm('您确定要清空所询盘的商品吗？')) location.href='[%$mlink.cleargoods%]';">
							</td>
						</tr>
					</table>
					
				</td>
			</tr>
			<tr>
				<td>
					<table>
						<tr>
							<td><span class="messicon"><img src="[%$url%]templates/goods/images/page_edit.gif" /></span></td>
							<td><span class="messtext strong fontsize14">填写联系信息</span> </td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><hr class="hrline"/></td>
			</tr>
			<tr>
				<td style="padding-top:10px">
					<table class="tablelist" width="100%" style="margin:0 auto;">
						<tr>
						    <td class="td02 right" width="20%">联系人姓名：</td>
						    <td class="td02 left"><input type="text" name="linkman" value="[%$member.alias%]" maxlength="50" size="20" class="infoInput"></td>
						</tr>
						<tr>
						    <td class="td02 right">电子邮件：</td>
						    <td class="td02 left"><input type="text" name="email" value="[%$member.email%]" maxlength="100" size="50" class="infoInput"></td>
						</tr>
						<tr>
						    <td class="td02 right">地区：</td>
						    <td class="td02 left">
							<select size="1" name="cityone" class="select" id="cityone">
							    <option value="0" [%if $member.country==0%]selected[%/if%]>[%$lngpack.cityone_title%]</option>
							    <option value="1" [%if $member.country==1%]selected[%/if%]>中国</option>
							</select>
							<select size="1" name="citytwo" class="select" id="citytwo">
							    <option selected value="0">[%$lngpack.citytwo_title%]</option>
							</select>
							<select size="1" name="citythree" class="select" id="citythree">
							    <option selected value="0">[%$lngpack.citythree_title%]</option>
							</select>
							<select size="1" name="district" class="select" id="district">
							    <option selected value="0">[%$lngpack.district_title%]</option>
							</select>
							<span id="loading">正在读取</span>
						    </td>
						</tr>
						<tr>
							<td class="td02 right">详细地址：</td>
							<td class="td02 left"><input type="text" name="address" value="[%$member.address%]" maxlength="120" size="60" class="infoInput"></td>
						</tr>
						<tr>
							<td class="td02 right">邮编：</td>
							<td class="td02 left"><input type="text" name="zipcode" value="[%$member.zipcode%]" maxlength="10" size="10" class="infoInput"></td>
						</tr>
						<tr>
						    <td class="td02 right">传真：</td>
						    <td class="td02 left"><input type="text" name="fax" value="[%$member.fax%]" maxlength="50" size="50" class="infoInput"></td>
						</tr>
						<tr>
						    <td class="td02 right">联系电话：</td>
						    <td class="td02 left"><input type="text" name="tel" value="[%$member.tel%]" maxlength="50" size="50" class="infoInput"></td>
						</tr>
						<tr>
						    <td class="td02 right">手机：</td>
						    <td class="td02 left"><input type="text" name="mobile" value="[%$member.mobile%]" maxlength="50" size="50" class="infoInput"></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td>
					<table>
						<tr>
							<td><span class="messicon"><img src="[%$url%]templates/goods/images/page_edit.gif" /></span></td>
							<td><span class="messtext strong fontsize14">其它信息</span> </td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td><hr class="hrline"/></td>
			</tr>
			<tr>
				<td style="padding-top:10px">
					<table class="tablelist" width="100%" style="margin:0 auto;">
						<tr>
						    <td class="td02 right" width="20%">备注：</td>
						    <td class="td02 left"><textarea name="content" rows="3" style="width:100%"></textarea></td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
				<td class="center" style="padding-top:20px"><input type="submit" name="submit" id="submit" class="buttonface" value="确认提交询盘"></td>
			</tr>
			[%else%]
			<tr>
				<td style="padding-top:10px">
				<table class="tablelist" width="100%" style="margin:0 auto;">
					<tr>
						<td colspan="6" class="td02 center">您还没有选择询盘商品!</td>
					</tr>
				</table>
				</td>
			</tr>
			[%/if%]
		</table>
		</form>
	</div>
	[%/if%]
	<!--版权声明-->
	[%include file="goods/cn/public/fotter.html"%]
</div>

</body>

</html>
